package cn.redragon.soa.common.amqp.model;


import cn.redragon.soa.common.constant.Constants;
import java.util.Map;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class AgentIdentity extends CommonIdentity {

    private String agentId;

    @Override
    public Map<String, Object> getIdentity() {
        return Map.ofEntries(
            Map.entry(Constants.MQ.BRAND, this.getBrand()),
            Map.entry(Constants.MQ.AGENT, this.getAgentId())
        );
    }
}